package com.dw.widget.slideshow.config.view.list;

import com.dw.widget.slideshow.R;

import android.content.Context;
import android.util.AttributeSet;
import android.widget.ImageView;
import android.widget.TextView;

public class ListTextItemView extends BaseListItemView {

	private ListItemIconView iconView;
	private TextView textView1;
	private TextView textView2;
	
	public ListTextItemView(Context context, AttributeSet attrs, int defStyle) {
		super(context, attrs, defStyle);
	}
	
	public ListTextItemView(Context context, AttributeSet attrs) {
		this(context, attrs, -1);
	}
	
	public ListTextItemView(Context context) {
		this(context, null);
	}

	@Override
	protected void onFinishInflate() {
		
		super.onFinishInflate();
		
		iconView = (ListItemIconView)findViewById(R.id.listitemtext_image);
		textView1 = (TextView)findViewById(R.id.listitemtext_text1);
		textView2 = (TextView)findViewById(R.id.listitemtext_text2);
	}
	
	public void setIcon(int resId)
	{
		iconView.setIcon(resId);
	}
	
	public void setText1(String text)
	{
		textView1.setText(text);
	}
	
	public void setText2(String text)
	{
		textView2.setText(text);
	}
	
	public TextView getTextView1()
	{
		return textView1;
	}
	
	public TextView getTextView2()
	{
		return textView2;
	}
}
